import { RouteRecordRaw } from "vue-router"

const routes: RouteRecordRaw[] = [
    {
        name: "主页",
        path: "/",
        component: () => import('@/views/home/index.vue')
    },
    {
        name: "动作面板",
        path: "/methods",
        component: () => import('@/views/methods/index.vue')
    },
    {
        name: "API管理",
        path: "/api",
        component: () => import('@/views/api/index.vue')
    },
    {
        name: "模板配置",
        path: "/views",
        component: () => import('@/views/views/index.vue')
    },
    {
        name: "关联配置",
        path: "/relate",
        component: () => import('@/views/relate/index.vue')
    },
    {
        name: "组件库",
        path: "/components",
        component: () => import('@/views/components/index.vue')
    },
    {
        name: "菜单管理",
        path: "/menu",
        component: () => import('@/views/apps/menu.vue')
    },
    {
        name: "应用管理",
        path: "/apps",
        component: () => import('@/views/apps/index.vue')
    },
    {
        name: "模版设计",
        path: "/design",
        component: () => import('@/views/design/index.vue')
    },
];

export default routes